<?php
class My_View_Helper_fTablaCuentas extends Zend_View_Helper_Abstract
 {
       

    


    public function fTablaCuentas($v,$neto=false)
    {


            $t="<table class='caja' width='100%'>
            <tr><td width='50%'>Coste</td><td width='50%'>".$this->view->NumEs($v['coste'],0)."</td></tr>
            <tr><td>Inversa</td><td>".$this->view->NumEs($v['inversa'],0)."</td></tr>
            <tr class='saldo'><td>Saldo</td><td>".$this->view->NumEs($v['saldo'],0)."</td></tr>";
            
            if($neto){
                 $t.="<tr><td>Inmovilizado</td><td>".$this->view->NumEs($v['inmovilizado'],0)."</td></tr>
                <tr class='saldo'><td>Saldo</td><td>".$this->view->NumEs($v['saldo_neto'],0)."</td></tr>";
            }
            
            $t.="</table>";
            
            return $t;
    }   
    
}